<?php
$array_result = array();
$site_url = site_url();
// fonepad code
if($lucky_gift_type == 'code') {
    $array_result = array(  'html'          => <<<EOF
<div class="dangky5" id="dangky5">
    <div class="frm">
        <p>{$fonepad_code}</p>
        <div class="dienthongtin"><a href="{$site_url}user-info"><img src="public/img/bt-dienthongtin.png"/></a></div>
    </div>
</div>                          
EOF
    );    
}
// T-shirt
else if($lucky_gift_type == 'ao') {
    $array_result = array(  'html'          => <<<EOF
<div class="dangky12" id="dangky12">
    <div class="frm">
        <div class="dienthongtin"><a href="{$site_url}user-info"><img src="public/img/bt-dienthongtin.png"/></a></div>
    </div>
</div>                         
EOF
    );    
}
// notebook
else if($lucky_gift_type == 'so') {
    $array_result = array(  'html'          => <<<EOF
<div class="dangky8" id="dangky8">
    <div class="frm">
        <div class="dienthongtin"><a href="{$site_url}user-info"><img src="public/img/bt-dienthongtin.png"/></a></div>
    </div>
</div>                        
EOF
    );    
}
// wish gift
else if($lucky_gift_type == 'wish') {
    $array_result = array(  'html'          => <<<EOF
<div class="dangky7" id="dangky7">
    <div class="frm">
        <div class="dienthongtin"><a href="{$site_url}user-info"><img src="public/img/bt-dienthongtin.png"/></a></div>
    </div>
</div>                       
EOF
    );    
}
echo json_encode($array_result);
?>
